import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  partFragments: '/erp_meixingtiyu/arena_part/partFragments',
  editPrice: '/erp_meixingtiyu/arena_part/editPrice',
  editStatus: '/erp_meixingtiyu/arena_part/editStatus',
}

/**
 * 获取该半场下的所有时段信息
 */
export function partFragments (params) {
  return axios({
    url: api.partFragments,
    method: 'get',
    params
  })
}

/**
 * 修改指定半场下指定时段的价格
 */
 export function editPrice (params) {
  return axios({
    url: api.editPrice,
    method: 'get',
    params
  })
}

/**
 * 修改指定半场下指定时段的状态
 */
 export function editStatus (params) {
  return axios({
    url: api.editStatus,
    method: 'get',
    params
  })
}